package org.dftproject.gedcom.ui.collections;

import org.dftproject.gedcom.ui.pages.GedcomPage;
import org.dftproject.gedcom.ui.pages.GedcomPageInput;
import org.dftproject.genesis.core.collections.Collection;
import org.dftproject.genesis.ui.collections.ICollectionHandler;
import org.dftproject.genesis.ui.pages.IPageInput;

public class GedcomCollectionHandler implements ICollectionHandler {

	public String getPageId(Collection collection) {
		return GedcomPage.ID;
	}

	public IPageInput getPageInput(Collection collection) {
		return new GedcomPageInput(collection.getData());
	}

}
